#include "log/log.h"

void kernelMain(){
    printk(" ___      _______  _     _  _______  _______ \n");
    printk("|   |    |       || | _ | ||       ||       |\n");
    printk("|   |    |____   || || || ||   _   ||  _____|\n");
    printk("|   |     ____|  ||       ||  | |  || |_____ \n");
    printk("|   |___ | ______||       ||  |_|  ||_____  |\n");
    printk("|       || |_____ |   _   ||       | _____| |\n");
    printk("|_______||_______||__| |__||_______||_______|\n");

    asm volatile("msr daifclr, #2": : :"memory"); // cpu取消irq中断屏蔽
    asm volatile("msr daifclr, #1": : :"memory"); // cpu取消fiq中断屏蔽

    vector_el1_init();

    
    gic_v2_init();
    test();
    // * (int *) 0xFFFFFFFFFF = 3;
    // generic_timer_enable_interrupt();
    // fwcfg_init();
    memory_init();
    pl031_init();
    pl011_init();
    
    while(1){
    }
}
